package com.contactmgr.activity;

import java.util.ArrayList;
import java.util.List;

import android.app.ListActivity;
import android.os.Bundle;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ArrayAdapter;

public class SimpleListActivity extends ListActivity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		List<String> list1Strings = new ArrayList<String>();
		list1Strings.add("List 11");
		list1Strings.add("List 12");
		list1Strings.add("List 13");
		list1Strings.add("List 14");
		setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, list1Strings));

	}

	public void setGestureListener(final GestureDetector gd) {
		getListView().setOnTouchListener(new View.OnTouchListener() {
			@Override
			public boolean onTouch(final View v, final MotionEvent me) {

				gd.onTouchEvent(me);
				return true;
			}
		});
	}
}